package com.ruoyi.supplier.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品规格对象 tb_product_spec
 * 
 * @author ruoyi
 * @date 2021-02-16
 */
public class TbProductSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品规格表 */
    private Long id;

    /** 商品分类表ID */
    @Excel(name = "商品分类表ID")
    private Long typeId;

    /** 商品分类名称 */
    private String typeName;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String specName;

    /** 规格排序 */
    @Excel(name = "规格排序")
    private Long specSort;

    /** 商品规格明细信息 */
    private List<TbProductSpecItem> tbProductSpecItemList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getSpecName()
    {
        return specName;
    }
    public void setSpecSort(Long specSort) 
    {
        this.specSort = specSort;
    }

    public Long getSpecSort() 
    {
        return specSort;
    }

    public List<TbProductSpecItem> getTbProductSpecItemList()
    {
        return tbProductSpecItemList;
    }

    public void setTbProductSpecItemList(List<TbProductSpecItem> tbProductSpecItemList)
    {
        this.tbProductSpecItemList = tbProductSpecItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("specName", getSpecName())
            .append("specSort", getSpecSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("tbProductSpecItemList", getTbProductSpecItemList())
            .toString();
    }
}
